package com.ruoyi.factory.buyprice.service.impl;

import java.util.List;

import com.ruoyi.factory.buyprice.domain.BurateMonth;
import com.ruoyi.factory.buyprice.mapper.BurateMonthMapper;
import com.ruoyi.factory.buyprice.service.IBurateMonthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 采购行情月汇率Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-29
 */
@Service
public class BurateMonthServiceImpl implements IBurateMonthService
{
    @Autowired
    private BurateMonthMapper burateMonthMapper;

    /**
     * 查询采购行情月汇率
     * 
     * @param id 采购行情月汇率主键
     * @return 采购行情月汇率
     */
    @Override
    public BurateMonth selectBurateMonthById(Long id)
    {
        return burateMonthMapper.selectBurateMonthById(id);
    }

    /**
     * 查询采购行情月汇率列表
     * 
     * @param burateMonth 采购行情月汇率
     * @return 采购行情月汇率
     */
    @Override
    public List<BurateMonth> selectBurateMonthList(BurateMonth burateMonth)
    {
        return burateMonthMapper.selectBurateMonthList(burateMonth);
    }

    /**
     * 新增采购行情月汇率
     * 
     * @param burateMonth 采购行情月汇率
     * @return 结果
     */
    @Override
    public int insertBurateMonth(BurateMonth burateMonth)
    {
        return burateMonthMapper.insertBurateMonth(burateMonth);
    }

    /**
     * 修改采购行情月汇率
     * 
     * @param burateMonth 采购行情月汇率
     * @return 结果
     */
    @Override
    public int updateBurateMonth(BurateMonth burateMonth)
    {
        return burateMonthMapper.updateBurateMonth(burateMonth);
    }

    /**
     * 批量删除采购行情月汇率
     * 
     * @param ids 需要删除的采购行情月汇率主键
     * @return 结果
     */
    @Override
    public int deleteBurateMonthByIds(Long[] ids)
    {
        return burateMonthMapper.deleteBurateMonthByIds(ids);
    }

    /**
     * 删除采购行情月汇率信息
     * 
     * @param id 采购行情月汇率主键
     * @return 结果
     */
    @Override
    public int deleteBurateMonthById(Long id)
    {
        return burateMonthMapper.deleteBurateMonthById(id);
    }
}
